<h1><?php echo $this->translate('pages_list');?></h1>
<table class="admin-table">
    <tr class="title">
        <td><?php echo $this->translate('title');?></td>
        <td><?php echo $this->translate('sysname');?></td>
        <td colspan="2">&nbsp;</td>
    </tr>
    <?php
    /** @var Mapper_Page $item */
    foreach($this->list as $k => $item):?>
    <tr class="row<?php echo ($k%2 == 1) ? '2' : '';?>">
        <td><?php echo $this->link( $item->title,$this->url(array('module'=>'page','action'=>'edit','id'=>$item->id),'admin',true) );?></td>
        <td><?php echo $item->sysname;?></td>
        <td><?php echo $this->link($this->url(array('pagename'=>$item->sysname),'page',true),$this->url(array('pagename'=>$item->sysname),'page',true),array('target'=>'pageview'));?></td>
        <td>
            <?php echo $this->link( 'edit' ,$this->url(array('module'=>'page','action'=>'edit','id'=>$item->id),'admin',true) );?>
            <?php echo ($item->built_in == false) ? $this->link( 'delete' ,$this->url(array('module'=>'page','action'=>'delete','id'=>$item->id),'admin',true) ) : '' ;?>
        </td>
    </tr>
    <?php endforeach;?>
</table>
